package com.zhaoyu.model.common.dtos;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
public class PageResponseResult extends ResponseResult implements Serializable {

    @ApiModelProperty(value="当前页",required = true)
    private Integer currentPage;
    @ApiModelProperty(value="每页显示条数",required = true)
    private Integer size;
    @ApiModelProperty(value="总页数",required = true)
    private Integer total;

    public PageResponseResult(Integer currentPage, Integer size, Integer total) {
        this.currentPage = currentPage;
        this.size = size;
        this.total = total;
    }

    public PageResponseResult() {

    }

}